import { createStore, createLogger } from 'vuex'
import user from './modules/user'
import cart from './modules/cart'
import category from './modules/category'
// 导入本地自动持久化插件
import createPersistedstate from 'vuex-persistedstate'

export default createStore({
  state: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    user,
    cart,
    category
  },
  // 插件选项
  plugins: [
    createPersistedstate(),
    createLogger()
  ]
})
